package com.education.model;

import com.education.util.DateUtil;
/*import org.apache.poi.ss.formula.functions.T;*/

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lzh on 2017/8/10.
 * 替代StudyResourceModel
 */
public class StudyResModel implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 资料编号
     */
    private Integer resourceId;

    /**
     * 教师Id，发布人
     */
    private Integer teacherId;

    /**
     * 资料名
     */
    private String resourceName;


    /**
     *资料标题
     */
    private String resourceTitle;


    /**
     * 资料描述
     */
    private String resourceDescribe;

    /**
     * 资料路径
     */
    private String resourcePath;

    /**
     * 资料大小
     */
    private Long resourceSize;

    /**
     * 资料添加时间
     */
    private Date resourceAddTime;

    /**
     * 资料添加时间（字符串）
     */
    private String resourceAddTimeStr;

    /**
     * 资料下载次数
     */
    private Integer resourceFrequence;



    public Integer getResourceId() {
        return resourceId;
    }

    public void setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public String getResourceTitle() {
        return resourceTitle;
    }

    public void setResourceTitle(String resourceTitle) {
        this.resourceTitle = resourceTitle;
    }

    public String getResourceDescribe() {
        return resourceDescribe;
    }

    public void setResourceDescribe(String resourceDescribe) {
        this.resourceDescribe = resourceDescribe;
    }

    public String getResourcePath() {
        return resourcePath;
    }

    public void setResourcePath(String resourcePath) {
        this.resourcePath = resourcePath;
    }

    public Long getResourceSize() {
        return resourceSize;
    }

    public void setResourceSize(Long resourceSize) {
        this.resourceSize = resourceSize;
    }

    public Date getResourceAddTime() {
        return resourceAddTime;
    }

    public void setResourceAddTime(Date resourceAddTime) {
        this.resourceAddTime = resourceAddTime;
        this.resourceAddTimeStr= DateUtil.formatDate(resourceAddTime,"yyyy-MM-dd");
    }

    public String getResourceAddTimeStr() {
        return resourceAddTimeStr;
    }


    public Integer getResourceFrequence() {
        return resourceFrequence;
    }

    public void setResourceFrequence(Integer resourceFrequence) {
        this.resourceFrequence = resourceFrequence;
    }
}
